<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//为了支持nvue能读到全局对象. 如果不需要支持nvue，main.js里挂在Vue.prototype,其他页面通过this.goEasy就可以获取
			this.globalData.goEasy = this.goEasy;
			// uni.hideTabBar({})
			/* 获取用户系统信息 */
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif

					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight + 4;
					// #endif		
				}
			});
		},

		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "pageA/component/colorui/main.css";
	@import "pageA/component/colorui/icon.css";

	@font-face {
		font-family: uniicons;
		src: url('https:linbo.vip:8888/uni.ttf');
	}
</style>
